export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "dialogClickModal": false,
  "searchMenuSpan": 6,
  "column": [
	  {
      "type": "input",
      "label": "计划编号",
      "prop": "planId",
      hide: true,
      addDisplay: false,
      editDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "资产编号",
      "prop": "assetId",
      hide: true,
      addDisplay: false,
      editDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "资产名称",
      "prop": "name",
      "span": 12
    },	{
      "type": "input",
      "label": "规格",
      "prop": "spec",
      "span": 12
    },	
    {
      "type": "input",
      "label": "单位",
      "prop": "unit",
      "span": 12
    },	
    {
      "type": "input",
      "label": "编号",
      "prop": "no",
      "span": 12
    },	
    {
      "type": "input",
      "label": "sn",
      "prop": "sn",
      "span": 12
    },	
    {
      "type": "input",
      "label": "品牌",
      "prop": "brand",
      "span": 12
    },
    {
      "type": "input",
      "label": "维保到期",
      "prop": "maintenanceExpireDate",
      "span": 12
    },
    {
      "type": "input",
      "label": "维保负责人",
      "prop": "maintenanceHandleRealname",
      "span": 12
    }, 
    {
      "type": "input",
      "label": "维保供应商",
      "prop": "supplier",
      "span": 12
    },
    {
      "type": "select",
      "label": "状态",
      "prop": "status",
      dicUrl: '/admin/dict/type/done_status',
      "span": 12
    }  ]
}

export const wcnjoption = {
  submitText: '确认',
  submitBtn: true,
  emptyBtn: false,
  row: false,
  column: [
    {
      label: '养护内容',
      prop: 'content',
      type: 'textarea',
      placeholder: '请填写养护内容',
      minRows: 5,
      maxlength: 500,
      span: 24,
      showWordLimit: true,
      rules: [{
        required: true,
        message: "请填写养护内容",
        trigger: "blur"
      }]
    },
    {
      "prop": "status",
      "span": 24,
      type: 'radio',
      "label": "设备状态",
      "hide": true,
      dicUrl: '/admin/dict/type/maintenance_record_status',
      value: '1',
    },
    {
      "prop": "recordItemList",
      "span": 24,
      "labelWidth": 0,
      "label": "",
      "hide": true,
      "formslot": true,
      slot:true
    },
    // {
    //   "label": "文件",
    //   prop: 'imageMultiple',
    //   loadText: '文件上传中，请稍等',
    //   type: 'upload',
    //   showColumn: false,
    //   viewDisplay: false,
    //   "hide": true,
    //   span: 24,
    //   accept: [],
    //   listType: 'file',
    //   tip: '上传文件不能超过20MB',
    //   propsHttp: {
    //       res: 'data',
    //       name: "originName"
    //   },
    //   props: {
    //       label: "originName",
    //       value: "url"
    //   },
    //   action: '/maintenance/uploadfile/upload'
    // }
  ]
}

export const itemOption = {
  "addBtn": false,
  "columnBtn": false,
  "refreshBtn": false,
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  delBtn: false,
  // menu: false,
  editBtn: false,
  "align": "center",
  "searchMenuSpan": 6,
  page:false,
  "column": [
    {
      "prop": "name",
      "label": "名称"
    },
    {
      "type": "number",
      "label": "数量",
      "prop": "amount",
      width: 180,
      slot: true
    },
    {
      "prop": "price",
      "label": "单价(元)"
    }
  ]
}
export const consumable_tableOption = {
  "addBtn": false,
  "columnBtn": false,
  "refreshBtn": false,
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "menu": false,
  "align": "center",
  "searchMenuSpan": 6,
  selection: true,
  reserveSelection: true,
  rowKey: 'itemId',
  "column": [
      {
          "type": "input",
          "label": "名称",
          "prop": "name",
          rules: [{
              required: true,
              message: "请输入名称",
          }],
      }, {
          "type": "number",
          "label": "价格",
          "prop": "price",
          rules: [{
              required: true,
              message: "请输入价格",
          }],
      }]
};


export const fyoperationOption = {
  "addBtn": false,
  "menu": false,
  "align": "center",
  "index": true,
  "border": true,
  refreshBtn:false,
  columnBtn:false,
  page:false,
  "column": [{
      "prop": "name",
      "type": "input",
      "label": "名称"
  }, {
      "prop": "amount",
      "type": "input",
      "label": "数量"
  }, {
      "prop": "price",
      "type": "input",
      "label": "费用(元)"
  }],
  "stripe": true,
  "menuAlign": "center",
  "indexLabel": "序号",
  "searchMenuSpan": 6
}